<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 <link rel="stylesheet" type="text/css" href="css/coms.css" />
<title>Insert title here</title>
</head>
<body>

 <s:if test="conferenceItemList.size() > 0">

					 <table class="mainTable" cellpadding="5px">
					<tr>
					
					<th>ItemID</th>
					<th>ItemType</th>
					<th>Desc</th>
					<th>Deadline</th>
					<th>StartTime</th>
					<th>EndTime</th>
					<th>ItemFee</th>
					<th>Location</th>
					<th>PresentaionType</th>
					<th>Action</th>
					
					</tr>
					<s:iterator value="conferenceItemList" status="status" var="obj">
					<tr>
					<td><s:property value="conferenceItemID" /></td>
					<td><s:property value="conferenceItemType" /></td>
					<td><s:property value="description" /></td>
					<td><s:property value="deadlineForSubmission" /></td>
					<td><s:property value="startTime" /></td>
					<td><s:property value="endTime" /></td>
					<td><s:property value="itemFee" /></td>
					<td><s:property value="location" /></td>
					<td><s:property value="presentaionType" /></td>
					<td>
						
						<s:set var="present" value="%{1}" />
						
					<s:iterator value="conferenceItemListofUser" status="status1" var="obj2">
					
						<s:if test="%{#obj.conferenceItemID == #obj2.conferenceItemID}">
						
					
							 
							<s:set var="present" value="%{2}" />
							
				
						</s:if>
						
					</s:iterator>
					
					
					
					<s:if test="%{#present == 2}">
					  
					   Registered
					
					</s:if>
					
					
					<s:else>
   							<s:url id="Conitemreg" action="ConferenceUserRegistration">
								<s:param name="conferenceItemID" value="%{#obj.conferenceItemID}"></s:param>
						</s:url>
						<s:a href="%{Conitemreg}">Please Register!!!!</s:a>
					</s:else>
					
	
					
					</td>					
						
					</tr>
					
					</s:iterator>
				</table>

						<a href="BookedConferences"  class="linkform">Back to Conference Page</a>
</s:if>


</body>
</html>